cmake_minimum_required (VERSION 2.6) 
project (GIS)

#INCLUDE GTEST to the build
add_subdirectory (external/gtest)
include_directories (external/gtest/include)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)

#INCLUDE DIRECTORIES
include_directories (${CMAKE_SOURCE_DIR}/include)
include_directories (${CMAKE_SOURCE_DIR}/external)

SET( CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -g -ggdb -Wall -Werror -pedantic -std=gnu++0x" )
SET( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS}" )

#MAIN OBJECTS
add_library(gis_lib src/Graph.cpp) 

#OUR MAIN EXECUTABLE
add_executable(gis src/main.cpp)
target_link_libraries(gis gis_lib)

#TEST PROJECT
add_executable(gis_test test/Graph_test.cpp)
target_link_libraries(gis_test gtest_main gis_lib)

